#include "sqlist.h"
#include "sql_list.h"

// 定义结构体数组
Stu_t hqyj_2402[100] =
    {
        {.id = 1, .age = 18, .sco = 99, .sex = "男", .name = "唐三"},
        {.id = 2, .age = 18, .sco = 99, .sex = "男", .name = "萧炎"},
        {.id = 3, .age = 18, .sco = 99, .sex = "男", .name = "叶晨"},
        {.id = 4, .age = 18, .sco = 99, .sex = "女", .name = "小舞"},
        {.id = 5, .age = 18, .sco = 99, .sex = "女", .name = "萧熏儿"},
        {.id = 6, .age = 18, .sco = 99, .sex = "女", .name = "柳如烟"}
};

int main(int argc, char const *argv[])
{
    Sql_list *L;
    L = init_list();
    insert_list(L,hqyj_2402[0]);
    insert_list(L,hqyj_2402[0]);
    insert_list(L,hqyj_2402[0]);
    insert_list(L,hqyj_2402[0]);
    insert_list(L,hqyj_2402[0]);
    insert_list(L,hqyj_2402[0]);
    insert(L,3,hqyj_2402[1]);
    printf_list(L);
    free(L);
    L = NULL;
    return 0;
}
